<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" type="text/css" href="../../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../../css/aui_font.css" />
    <link rel="stylesheet" type="text/css" href="../../css/news.css" />
    <link rel="stylesheet" type="text/css" href="../../css/frame3.css" />
    <style>
        body{
            background-color: #FFFFFF;
            height: 100vh;
        }
        #view{
            padding-top: 50px;
        }
        .item li{
            border-bottom: none;
        }
        .item .on .lt{
            color: #6C50CB;
        }
    </style>
</head>
<body>
    <div id="view" v-cloak>
        <header></header>
        <section class="m-frame">
            <ul class="item">
                <li v-for="item in list" :class="{item_li: true, on: title == item.title}" @click="goTo(item)">
                    <div class="lt">{{_i18n(item.title)}}</div>
                    <div class="rt">
                        <span class="aui-iconfont aui-icon-right"></span>
                    </div>
                </li>
            </ul>
           
        </section>
    </div>
</body>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/jquery.js"></script>
<script type="text/javascript" src="../../script/ffkj.js"></script>
<script type="text/javascript" src="../../script/vue.js"></script>
<script type="text/javascript">
    var view = new Vue({
        el: '#view',
        data: {
            title: '首页',
            list:[
                {
                    title: '首页',
                    url: 'gonghui/index'
                },
                {
                    title: '公会收益汇总',
                    url: 'gonghui/shouyihuizong'
                },
                {
                    title: '公会成员列表',
                    url: 'gonghui/chengyuan'
                },
                {
                    title: '渠道链接',
                    url: 'gonghui/qudaolianjie'
                },
                {
                    title: '收益',
                    url: 'gonghui/jifen'
                }
            ]
        },
		methods:{
			goTo(item){
				console.log(item.url)
				console.log(api.winName)
				this.title = item.title
				api.execScript({
					name: 'gonghui_win',
				    script: 'goToFrame("'+item.url+'","'+item.title+'");'
				});
				
			}
		}
	})
        apiready = function() {
            $api.fixStatusBar($api.dom('header'));
            view.title = api.pageParam['title'] || '首页'
        }

</script>
</html>